<!DOCTYPE html>
<html>
<head>
    <title>Array Type Example</title>
    <script type="text/javascript">
        
        var colors = new Array(3);      //create an array with three items
        var names = new Array("Greg");  //create an array with one item, the string "Greg"

        alert(colors.length);
        alert(names.length);

    </script>
</head>
<body>

</body>
</html>